<div ng-if="{width}==100" class="form-group" {guanlians}>
	<div class="col-xs-12 col-sm-12 col-lg-12">
		<div class="input-group">
			<input type="text" value="{title}" class="form-control" autocomplete="off" readonly="readonly">
			<span class="input-group-btn">
				<button class="btn btn-gray" type="button" ng-click="pagedata.jsupto()">{btntitle}</button>
			</span>
		</div>
	</div>
</div>
<div ng-if="{width}!=100" class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label">{{check_show_lang('{title}')}}</label>
	<div  class="col-xs-12 col-sm-8 col-lg-9">
		<div class="input-group">
			<input type="text" value="{title}" class="form-control" autocomplete="off" readonly="readonly">
			<span class="input-group-btn">
				<button class="btn btn-gray" type="button" ng-click="pagedata.jsupto()">{btntitle}</button>
			</span>
		</div>
	</div>
</div>
<script type="text/javascript">
scope.pagedata.jsupto=function() {
	if('{message}'){
		scope.confirm({
				'message':'{message}',
				'success':function(){
					if('{name}'){
						scope.post_json('{action}',scope.{tovalue},function(res){
							scope.{tovalue}.{name}=res.{name};
							scope.$evalAsync();
						});
					}else{
						scope.post_json('{action}',scope.{tovalue},function(res){
							scope.{tovalue}=res;
							scope.$evalAsync();
						});
					}
				},
				'fail':function(){}
		});
	}else{
		if('{name}'){
			scope.post_json('{action}',scope.{tovalue},function(res){
				scope.{tovalue}.{name}=res.{name};
				scope.$evalAsync();
			});
		}else{
			scope.post_json('{action}',scope.{tovalue},function(res){
				scope.{tovalue}=res;
				scope.$evalAsync();
			});
		}
	}
}
</script>